<cu-custom bgColor="bg-blue" goHome="{{true}}">
	<view slot="homeText">主页</view>
	<view slot="content">写给未来的信</view>
</cu-custom>



<view class="margin-xl bg-white padding-xl radius shadow-lg" style="margin: 50rpx 50rpx 20rpx 50rpx;">

	<view class="text-center margin-bottom text-lg solid-bottom text-grey">{{detail.title}}</view>
	<view class="text-content">
		<text style="font-family:text_write">{{detail.content}}</text>
	</view>
</view>

<view class="cu-list menu card-menu margin-top-xl margin-bottom-xl shadow-lg radius">
	<view class="cu-item">
		<view class="content">
			<text class="cuIcon-mail text-grey"></text>
			<text class="text-grey">收件邮箱号：<text class="text-blue">{{detail.email}}</text></text>
		</view>
	</view>
	<view class="cu-item">
		<view class="content">
			<text class="cuIcon-countdown text-grey"></text>
			<text class="text-grey">信件提交时间：<text class="text-black">{{detail.create_time}}</text></text>
		</view>
	</view>
	<view class="cu-item">
		<view class="content">
			<text class="cuIcon-countdown text-grey"></text>
			<text class="text-grey">约定送达时间：<text class="text-black">{{detail.agreed_time}}</text></text>
		</view>
	</view>

</view>

<ad unit-id="486eba507bd7b46275f6a2f595972d72" type="feeds"></ad>

<view class="grid col-3 align-center">
	<view bindtap="{{is_liked?'secondLike':'likeLetter'}}" class="margin-tb text-center lg">
		<view class="cu-capsule round lg">
			<view class="cu-tag bg-{{is_liked?'red':'grey'}}">
				<text class="cuIcon-likefill"></text>
			</view>
			<view style="min-width:57rpx" class="cu-tag line-{{is_liked?'red':'grey'}}">
				{{detail.like_num}}
			</view>
		</view>
	</view>
	<view class="margin-tb text-center">
		<button bindtap="toWrite" class="cu-btn round lg bg-blue shadow">我也去写信</button>
	</view>
	<view class="margin-tb text-center"  style="min-width: 62rpx;">
		<button bindtap="toPublic" class="cu-btn round sm bg-green shadow" style="min-width: 62rpx;">查看更多</button>
	</view>
</view>

<!-- <view class="padding">

	<button bindtap="uploadMessage" class="cu-btn block bg-blue margin-tb-sm lg">
		<text class="cuIcon-forwardfill"></text>
		哟西！我也要写给未来</button>
</view>
 -->